import Layout from '@/layout'

export default [
  {
    path: '/product',
    component: Layout,
    redirect: '/product/index',
    name: 'Nested',
    meta: {title: '商品管理', icon: 'example'},
    children: [
      {
        path: 'index',
        component: () => import('@/views/product/List'),
        hidden: true
      },
      {
        path: 'add',
        meta: {title: '添加'},
        component: () => import('@/views/product/Add'),
        hidden: true
      },
      {
        path: 'edit',
        meta: {title: '编辑'},
        component: () => import('@/views/product/Edit'),
        hidden: true
      },
    ]


  }
]
